package com.simulated.communication.push;

import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;

import java.io.IOException;

/**
 * @Author Markburt
 * @Description :异步发送推送消息
 * @DATE: 2020/5/3
 * @TIME: 下午 12:56
 * @YEAR: 2020
 * @Version :
 **/
@Component
public class AsyncCenter {

    @Async
    public void sendPush(String title, String text, String cid){
        try {
            AppPush.sendPush(title,text,cid);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
